package Book;

public class BookList {
    private Book[] books=new Book[10];
    private int usesize;

    public BookList() {
        books[0]=new Book("1","1",12,"xaioshuo");
        books[1]=new Book("2","2",12,"xaioshuo");
        books[2]=new Book("3","3",12,"xaioshuo");
        this.usesize=3;
    }

    public Book getbook(int pos) {
        return this.books[pos];
    }

    public void setBook(Book book) {

        this.books[usesize]=book;
    }

    public void setBook(int pos) {
        books[pos]=books[pos+1];
    }

    public int getsize() {
        return usesize;
    }

    public void setsize(int usesize) {
        this.usesize = usesize;
    }
}
